<template>
	<view class="hotelService" v-if="item == 7">
		<view  v-for="(itemD, indexD) in dessert" :key="indexD">
			<view class="title">
				<text class="name">点心信息({{ indexD + 1 }})</text>
				<text class="delete" @click="deleteDessert(indexD)">删除</text>
			</view>
			<view class="content">
				<!-- dessert_id -->
				<view class="box" style="position: relative">
					<text>品牌</text>
					<picker @change="chooseDessert" :disabled="isEdit" :data-type="indexD" range-key="title" :range="dessertList">
						<view class="choose" style="margin-top: 25upx" v-if="JSON.stringify(dessertList) != '[]'">
							<text :class="itemD.dessertIndex !== '' ? 'active' : ''">{{ itemD.dessertIndex === '' ? '请选择' : dessert[indexD].dessert_text }}</text>
							<image v-if="itemD.dessertIndex === ''" src="../../../static/images/right.png" mode=""></image>
						</view>
					</picker>
				</view>
				<view class="box">
					<text>数量</text>
					<input type="digit" :disabled="isEdit" v-model="itemD.dessert_amount" placeholder="请输入" placeholder-style="color:#999999;" />
				</view>
				<view class="box">
					<text>金额</text>
					<input type="digit" :disabled="isEdit" v-model="itemD.dessert_price" placeholder="请输入" placeholder-style="color:#999999;" />
				</view>
				<view class="remark">
					<text>备注</text>
					<textarea type="text" :disabled="isEdit" v-model="itemD.dessert_remark" placeholder="请输入备注" placeholder-style="color:#999999;" />
				</view>
			</view>
		</view>
		<view class="addDetail" @click="addDessert">增加明细</view>
	</view>
</template>

<script>
</script>

<style>
</style>
